package cn.lanink.gamecore;

import cn.lanink.gamecore.floatingtext.FloatingTextUtils;
import cn.lanink.gamecore.form.WindowListener;
import cn.lanink.gamecore.hotswap.manager.HotSwapManager;
import cn.lanink.gamecore.modelmanager.ModelManager;
import cn.lanink.gamecore.ranking.RankingAPI;
import cn.lanink.gamecore.utils.ConfigUtils;
import cn.lanink.gamecore.utils.MetricsLite;
import cn.lanink.gamecore.utils.NukkitTypeUtils;
import cn.lanink.gamecore.utils.packet.NPCDialoguePacket;
import cn.lanink.gamecore.utils.packet.NPCRequestPacket;
import cn.nukkit.entity.data.Skin;
import cn.nukkit.plugin.PluginBase;
import cn.nukkit.utils.Config;
import com.google.gson.Gson;

import java.util.Base64;

/**
 * @author lt_name
 */
public class GameCore extends PluginBase {

    public static final String VERSION = "?";

    public static final Gson GSON = new Gson();

    public static boolean debug = false;

    private static GameCore gameCore;

    public static final String STEVE_SKIN = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqHQ3/Kh0N/yQYCP8qHQ3/Kh0N/yQYCP8kGAj/HxAL/3VHL/91Ry//dUcv/3VHL/91Ry//dUcv/3VHL/91Ry//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKh0N/yQYCP8vHw//Lx8P/yodDf8kGAj/JBgI/yQYCP91Ry//akAw/4ZTNP9qQDD/hlM0/4ZTNP91Ry//dUcv/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8//z8/P/8/Pz//Pz8//2tra/9ra2v/a2tr/2tra/8/Pz//Pz8//z8/P/8/Pz//a2tr/2tra/9ra2v/a2tr/5ZfQf+HVTv/ll9B/4dVO/+qfWb/lm9b/6p9Zv+qfWb/ll9B/4dVO/+WX0H/ll9B/5ZvW/+qfWb/lm9b/6p9Zv8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8/P/8/Pz//Pz8//z8/P/9ra2v/a2tr/2tra/9ra2v/Pz8//z8/P/8/Pz//Pz8//2tra/9ra2v/a2tr/2tra/+WX0H/ll9B/5ZfQf+HVTv/lm9b/5ZvW/+qfWb/lm9b/5ZfQf+WX0H/ll9B/5ZfQf+Wb1v/qn1m/5ZvW/+qfWb/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==";
    public static Skin DEFAULT_SKIN;

    // GameCore 自带的 ModelManager
    // 你可以实例化你自己的 ModelManager 放到你的插件里
    public static final ModelManager MODEL = new ModelManager();

    // 同上
    public final HotSwapManager hotSwapManager = new HotSwapManager(this);

    static {
        Skin skin = new Skin();
        skin.setTrusted(true);
        skin.setSkinId("Standard_Custom");
        skin.setSkinData(Base64.getDecoder().decode(STEVE_SKIN));
        DEFAULT_SKIN = skin;
    }

    public static GameCore getInstance() {
        return gameCore;
    }

    @Override
    public void onLoad() {
        gameCore = this;
        this.saveResource("modules.txt");

        //HotSwap
        this.hotSwapManager.loadModulesFromLocal();
        this.hotSwapManager.loadModulesFromWeb();
    }

    @Override
    public void onEnable() {
        NukkitTypeUtils.NukkitType nukkitType = NukkitTypeUtils.getNukkitType();
        if (nukkitType != NukkitTypeUtils.NukkitType.NUKKITX && nukkitType != NukkitTypeUtils.NukkitType.POWER_NUKKIT) {
            this.getLogger().warning("Warning! The current plugin version is not applicable to this server core! Please check the plugin version!");
            this.getLogger().warning("Server Code : " + nukkitType.getShowName() + "  |  Plugin Version : " + this.getVersion());
            try {
                Thread.sleep(3000);
            } catch (InterruptedException ignored) {

            }
        }

        this.getServer().getNetwork().registerPacket(NPCDialoguePacket.NETWORK_ID, NPCDialoguePacket.class);
        this.getServer().getNetwork().registerPacket(NPCRequestPacket.NETWORK_ID, NPCRequestPacket.class);

        //HotSwap
        this.hotSwapManager.enableAllModules();

        //Form
        this.getServer().getPluginManager().registerEvents(new WindowListener(), this);

        //FloatingTextUtils
        this.getServer().getScheduler().scheduleRepeatingTask(this, new FloatingTextUtils.TickTask(this), 1);
        this.getServer().getScheduler().scheduleRepeatingTask(this, new FloatingTextUtils.AsyncTickTask(this), 1, true);

        //RankingAPI
        RankingAPI.getInstance().enable();

        //bStats
        try {
            new MetricsLite(this, 12850);
        }catch (Exception ignored) {

        }

        //Test
        this.runTest();

        this.getLogger().info("§eMemoriesOfTime-GameCore §aEnabled! Version:" + this.getVersion());
    }

    @Override
    public void onDisable() {
        //HotSwap
        this.hotSwapManager.disableAllModules();

        //RankingAPI
        RankingAPI.getInstance().disable();
    }

    public String getVersion() {
        return VERSION;
        /*Config config = new Config(Config.PROPERTIES);
        config.load(this.getResource("git.properties"));
        return config.get("git.build.version", this.getDescription().getVersion()) + " git-" + config.get("git.commit.id.abbrev", "Unknown");*/
    }

    public void runTest() {
        this.saveResource("Test/config.yml", true);
        this.saveResource("Test/description.yml", true);

        Config config = new Config(this.getDataFolder() + "/Test/config.yml", Config.YAML);
        config.set("test", "Change test");
        config.save();

        ConfigUtils.addDescription(
                config,
                new Config(this.getDataFolder() + "/Test/description.yml", Config.YAML)
        );
    }

}
